<%@page pageEncoding="utf-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        车辆编辑
    </title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" media="all">
</head>
<body>

<div class="x-body">
    <form class="layui-form layui-form-pane" action="${pageContext.request.contextPath}/car/edit" method="post" id="edit" enctype="multipart/form-data">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"></div>
        <input type="text" name="id" value="${car.id}" hidden>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class='x-red'>*</span>所属成员
            </label>
            <div class="layui-input-block">
                <select name="pname" id="personnel_id">
                    <option >---请选择人员---</option>
                    <c:forEach items="${person}" var="person">
                        <option value="${person.id}"> ${person.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class='x-red'>*</span>车牌号码
            </label>
            <div class="layui-input-block">
                <input type="text" name="number" autocomplete="off"
                       class="layui-input" value="${car.number}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class='x-red'>*</span>车辆颜色
            </label>
            <div class="layui-input-block">
                <input type="text" name="color" autocomplete="off"
                       class="layui-input" value="${car.color}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class='x-red'>*</span>车辆照片
            </label>
            <div class="layui-input-block">
                <input type="file" name="photos" autocomplete="off" placeholder=""
                       class="layui-input" value="">
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">
                <span class='x-red'>*</span>描述
            </label>
            <div class="layui-input-block">
                <textarea  name="remark" class="layui-textarea" ></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <button class="layui-btn" type="submit" lay-filter="edit" lay-submit="">
                保存
            </button>
        </div>

        <div style="height:100px;"></div>
    </form>
</div>
</body>





</div>
</div>
<script src="${pageContext.request.contextPath}/lib/layui/layui.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/js/x-layui.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/js/jquery.min.js" charset="utf-8"></script>

<script>
    layui.use(['element','layer','form'], function(){
        $ = layui.jquery;//jquery
        lement = layui.element();//面包导航
        layer = layui.layer;//弹出层
        form = layui.form();
        form.render();

    })
</script>

</body>
</html>